package com.parking.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 验证码参数
 * 手机号：phone
 * */
@Data
@ApiModel("验证码参数")
public class PhongForm {
    /**
     *
     * 手机号：phone
     * */
    @Size(min = 11, max = 11, message = "手机号码长度必须为11位")
    @Pattern(regexp = "1[3-9]\\d{9}", message = "手机号码格式不正确")
    @ApiModelProperty("手机号")
    private String phone;
}
